<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<link href="css/index.css" rel="stylesheet" type="text/css" />



<html>
        <div id="top">
		<h1>员工入职信息登记表</h1>
</div>
    <head>
        <meta charset="UTF-8">
        <title>员工信息注册</title>
        <style type="text/css">
           
        </style>
    </head>
    <body>
        <div class="box">
<div id="box">
    <table class="tb" width="820" border='1'cellspacing="0" cellpadding="10" >
        <tbody>
              <tr class="tb_1">
              <td width="40">ID</td>
              <td width="100">姓名</td>
              <td width="100">所属部门</td>
              <td width="80">头像</td>
              <td width="200">出生日期</td>
              <td width="200">入职时间</td>
              <td width="100">相关操作</td>
            </tr>
        <p class="zt_style">员工信息</p>
        
            <?php
              foreach($rows as $row ) 
              {
            ?>
            <tr class="tb_2">
              <td><?php echo $row["e_id"]  ?></td>
              <td><?php echo $row["e_name"]  ?></td>
              <td><?php echo $row["e_dept"]  ?></td>
              <td><img src= '<?php echo $row["e_img"]  ?>' alt="" /></td>
              <td><?php echo $row["date_of_birth"]  ?></td>
              <td><?php echo $row["date_of_entry"]  ?></td>
              <td>
                  <a href="Update_1.php?id=<?php echo $row["e_id"]  ?>">编辑</a> 
                  <a href="Del.php?id=<?php echo $row["e_id"]  ?>">删除</a>
              </td>
            </tr>
          
            <?php  
                }
            ?>
            
        </tbody>
        
    </table>
   <p id="add">
       <a class="add" href='Update.php ?>' ?  id=<?php echo $row["e_id"]  ?> >添加</a></p>
</div>
        <div class="submit">
            <form action="Add.php" method="post">
                <h2 class="ziti">员工信息注册</h2>
                姓　　名：<input id="name" type="text" name="e_name" 
                          class="e_name" autocomplete="off" placeholder="如：张三"><br/><br/>
                所属部门：
                <select name="bumen">
                    <option value="人事部">人事部</option>
                    <option value="营销部">营销部</option>
                    <option value="市场部">市场部</option>
                    <option value="财务部">财务部</option>
                    <option value="信息部">信息部</option>
                    <option value="采集部">采集部</option>
                    <option value="秘书部">秘书部</option>
                </select><br/><br/>
                
                出生日期：<input class="date" type="datetime-local" name="date_of_birth" /><br/><br/>
                入职日期：<input class="date" type="datetime-local" name="date_of_entry" />
                <p class="tow">
                    <input type="radio" name="e_img" value="imagse/1.jpg" checked="checked"/><img src=" imagse/1.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/2.jpg"  /><img src=" imagse/2.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/3.jpg" /><img src=" imagse/3.jpg" alt="" />
                    <input type="radio" name="e_img" value="imagse/4.jpg" /><img src=" imagse/4.jpg" alt="" />
                    
                </p>
                <p id="btn"><input class="btn" type="submit" value="注册" /></p><br/><br/>
            </form>
        </div>
</div>
    </body>
</html>